package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 客户
 */
@ApiModel(description = "客户")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class CustomerItem   {
  @JsonProperty("contractNo")
  private String contractNo = null;

  @JsonProperty("contractType")
  private String contractType = null;

  @JsonProperty("securityNo")
  private String securityNo = null;

  @JsonProperty("securityName")
  private String securityName = null;

  @JsonProperty("transactionAmount")
  private String transactionAmount = null;

  @JsonProperty("settleAmount")
  private String settleAmount = null;

  @JsonProperty("contractDate")
  private String contractDate = null;

  @JsonProperty("expireDate")
  private String expireDate = null;

  public CustomerItem contractNo(String contractNo) {
    this.contractNo = contractNo;
    return this;
  }

  /**
   * 合同编号
   * @return contractNo
  **/
  @ApiModelProperty(value = "合同编号")


  public String getContractNo() {
    return contractNo;
  }

  public void setContractNo(String contractNo) {
    this.contractNo = contractNo;
  }

  public CustomerItem contractType(String contractType) {
    this.contractType = contractType;
    return this;
  }

  /**
   * 合同类型
   * @return contractType
  **/
  @ApiModelProperty(value = "合同类型")


  public String getContractType() {
    return contractType;
  }

  public void setContractType(String contractType) {
    this.contractType = contractType;
  }

  public CustomerItem securityNo(String securityNo) {
    this.securityNo = securityNo;
    return this;
  }

  /**
   * 证券代码
   * @return securityNo
  **/
  @ApiModelProperty(value = "证券代码")


  public String getSecurityNo() {
    return securityNo;
  }

  public void setSecurityNo(String securityNo) {
    this.securityNo = securityNo;
  }

  public CustomerItem securityName(String securityName) {
    this.securityName = securityName;
    return this;
  }

  /**
   * 证券名称
   * @return securityName
  **/
  @ApiModelProperty(value = "证券名称")


  public String getSecurityName() {
    return securityName;
  }

  public void setSecurityName(String securityName) {
    this.securityName = securityName;
  }

  public CustomerItem transactionAmount(String transactionAmount) {
    this.transactionAmount = transactionAmount;
    return this;
  }

  /**
   * 成交金额
   * @return transactionAmount
  **/
  @ApiModelProperty(value = "成交金额")


  public String getTransactionAmount() {
    return transactionAmount;
  }

  public void setTransactionAmount(String transactionAmount) {
    this.transactionAmount = transactionAmount;
  }

  public CustomerItem settleAmount(String settleAmount) {
    this.settleAmount = settleAmount;
    return this;
  }

  /**
   * 清算金额
   * @return settleAmount
  **/
  @ApiModelProperty(value = "清算金额")


  public String getSettleAmount() {
    return settleAmount;
  }

  public void setSettleAmount(String settleAmount) {
    this.settleAmount = settleAmount;
  }

  public CustomerItem contractDate(String contractDate) {
    this.contractDate = contractDate;
    return this;
  }

  /**
   * 合约日期
   * @return contractDate
  **/
  @ApiModelProperty(value = "合约日期")


  public String getContractDate() {
    return contractDate;
  }

  public void setContractDate(String contractDate) {
    this.contractDate = contractDate;
  }

  public CustomerItem expireDate(String expireDate) {
    this.expireDate = expireDate;
    return this;
  }

  /**
   * 到期日
   * @return expireDate
  **/
  @ApiModelProperty(value = "到期日")


  public String getExpireDate() {
    return expireDate;
  }

  public void setExpireDate(String expireDate) {
    this.expireDate = expireDate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomerItem customerItem = (CustomerItem) o;
    return Objects.equals(this.contractNo, customerItem.contractNo) &&
        Objects.equals(this.contractType, customerItem.contractType) &&
        Objects.equals(this.securityNo, customerItem.securityNo) &&
        Objects.equals(this.securityName, customerItem.securityName) &&
        Objects.equals(this.transactionAmount, customerItem.transactionAmount) &&
        Objects.equals(this.settleAmount, customerItem.settleAmount) &&
        Objects.equals(this.contractDate, customerItem.contractDate) &&
        Objects.equals(this.expireDate, customerItem.expireDate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(contractNo, contractType, securityNo, securityName, transactionAmount, settleAmount, contractDate, expireDate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomerItem {\n");
    
    sb.append("    contractNo: ").append(toIndentedString(contractNo)).append("\n");
    sb.append("    contractType: ").append(toIndentedString(contractType)).append("\n");
    sb.append("    securityNo: ").append(toIndentedString(securityNo)).append("\n");
    sb.append("    securityName: ").append(toIndentedString(securityName)).append("\n");
    sb.append("    transactionAmount: ").append(toIndentedString(transactionAmount)).append("\n");
    sb.append("    settleAmount: ").append(toIndentedString(settleAmount)).append("\n");
    sb.append("    contractDate: ").append(toIndentedString(contractDate)).append("\n");
    sb.append("    expireDate: ").append(toIndentedString(expireDate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

